feat: add MiniMax provider support (default: MiniMax-M3)#190
Open
octo-patch wants to merge 2 commits into
Open
feat: add MiniMax provider support (default: MiniMax-M3)#190octo-patch wants to merge 2 commits into
octo-patch wants to merge 2 commits into
Conversation
added 2 commits
April 21, 2026 21:18
- Add MiniMax chat model provider to s2, s2_5, and s3 engines - Use Anthropic-compatible interface (https://api.minimax.io/anthropic) - Supports MiniMax-M2.7 and MiniMax-M2.7-highspeed models - Add MINIMAX_API_KEY and optional MINIMAX_BASE_URL environment variables - Clamp temperature to (0.0, 1.0] range required by MiniMax API - Filter unsupported parameters (top_k, stop_sequences, service_tier, etc.) - Add unit tests (19 tests covering all key behaviors) - Update models.md with MiniMax provider documentation
- Add MiniMax-M3 as default model in models.md (512K context, 128K max output, image input) - Keep MiniMax-M2.7 and MiniMax-M2.7-highspeed as alternatives - Add unit test covering MiniMax-M3 model name pass-through
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds MiniMax as a supported LLM provider for all Agent-S versions (s2, s2_5, s3), with MiniMax-M3 as the default model.
LMMEngineMiniMaxengine class using the Anthropic-compatible API interface (https://api.minimax.io/anthropic)MiniMax-M3(default, 512K context, 128K max output, image input),MiniMax-M2.7,MiniMax-M2.7-highspeed(0.0, 1.0](clamps zero to 1.0), filters unsupported parameters (top_k,stop_sequences,service_tier, etc.)engine_type: "minimax"in all threeLMMAgentclassesmodels.mdwith MiniMax setup instructionsLMMAgentintegrationWhy MiniMax-M3 as default
MiniMax-M3is the latest model in the MiniMax family:M2.7 and M2.7-highspeed are kept as alternatives for users who prefer them.
Usage
Set
MINIMAX_API_KEYenvironment variable (optionallyMINIMAX_BASE_URL).API References